Recursive Sorting in Lattices

نویسنده

  • Jens Gerlach
چکیده

The direct application of the definition of sorting in lattices [1] is impractical because it leads to an algorithm with exponential complexity. In this paper we present for distributive lattices a recursive formulation to compute the sort of a sequence. This alternative formulation is inspired by the identity ( n k ) = ( n−1 k−1 ) + ( n−1 k ) that underlies Pascal’s triangle. It provides quadratic complexity and is in fact a generalization of insertion sort for lattices.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Explicit Formula for Sorting and its Application to Sorting in Lattices

In a totally ordered set the notion of sorting a finite sequence is defined through the existence of a suitable permutation of the sequence’s indices. A drawback of this definition is that it only implicitly expresses how the elements of a sequence are related to those of its sorted counterpart. To alleviate this situation we prove a simple formula that explicitly describes how the kth element ...

متن کامل

Sorting in Lattices

In a totally ordered set the notion of sorting a finite sequence is defined through a suitable permutation of the sequence’s indices. In this paper we prove a simple formula that explicitly describes how the elements of a sequence are related to those of its sorted counterpart. As this formula relies only on the minimum and maximum functions we use it to define the notion of sorting for lattice...

متن کامل

Status of the Atf2 Lattices *

The current status for the ATF2 Nominal and Ultra-low β∗ lattices are presented in this paper. New lattice designs have been obtained in order to minimise the impact of the last interpretation of multipole measurements that have been included into the model. However, the new ATF2 Ultra-low design is not able to recover the expected vertical beam size at the IP with the current magnet distributi...

متن کامل

A Correctness Proof of Sorting by Means of Formal Procedures

We consider a recursive sorting algorithm in which, in each invocation, a new variable and a new procedure (using the variable globally) are defined and the procedure is passed to recursive calls. This algorithm is proved correct with Hoare-style preand postassertions. We also discuss the same algorithm expressed as a functional program.

متن کامل

Regularity in residuated lattices

In this paper, we study residuated lattices in order to give new characterizations for dense, regular and Boolean elements in residuated lattices and investigate special residuated lattices in order to obtain new characterizations for the directly indecomposable subvariety of Stonean residuated lattices. Free algebra in varieties of Stonean residuated lattices is constructed. We introduce in re...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1306.0019  شماره 

صفحات  -

تاریخ انتشار 2013